<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script src="../../common/jquery/jquery-1.12.3.js"></script>
	<script src="../../common/js/network.js"></script>
</head>
<body>
<div id="brand"></div>
<br>
<div id="category"></div>
<br>
<div id="productList"></div>
<br>
<div id="product"></div>
<br>
<div id="promotion"></div>
<br>
<div id="shopList"></div>
<br>
<div id="shop"></div>
<script>
	$(function(){
		listBrands(function(res){
			$('#brand').html(JSON.stringify(res));
		});
		listCategories(function(res){
			$('#category').html(JSON.stringify(res));
		});
		listProducts(function(res){
			$('#productList').html(JSON.stringify(res));
		});
		getProduct('1', function(res){
			$('#product').html(JSON.stringify(res));
		});
		getPromotion('1', function(res){
			$('#promotion').html(JSON.stringify(res));
		});
		listShops(function(res){
			$('#shopList').html(JSON.stringify(res));
		});
		getShop('1', function(res){
			$('#shop').html(JSON.stringify(res));
		})

	});
</script>
</body>
</html>